package online.githuboy.lagou.course.utils;

import java.util.Map;

/**
 * @author eric
 * @program lagou-course-downloader
 * @description 存储地址
 * @date 2021/8/6
 */
public class StorageUtil {

    public static String getStotage() {
        Map<String, String> map = System.getenv();
        // linux下获取用户名
        String userName = map.get("USERNAME");
        if (userName == null || userName.length() <= 0) {
            userName = map.get("USER");
        }
        return "/media/" + userName + "/File-Old/lagou";
    }

}
